$("#js-alert-num").html("<%= escape_javascript(render partial: 'share/alert', locals: {alerts: @alerts}) %>");